/**
 * Created by MingIr on 2017/1/22.
 * @author:bjzhang
 */

import React,{Component} from 'react';

import {
    View,
    Text,
    StyleSheet,
    TextInput
} from 'react-native';
import PHead from '../module/header';

export default class NickNameEdit extends Component{
    constructor(props){
        super(props);
    }

    render(){
        return(
            <View style={styles.container}>
                <PHead onBackEvent={this.backEvent} onMoreEvent={this.moreEvent} rightText='保存' leftIcon={require('../../icon/camera/camera_icon_back.png')} title='昵称'/>
                <View style={{ flex:1 }}>
                    <TextInput underlineColorAndroid='transparent'
                               maxLength={20}
                               keyboardType='default'
                               style={styles.textInput}>
                        用户2918550
                    </TextInput>
                </View>
            </View>
        );
    }
}

const styles = StyleSheet.create({
    container:{
        backgroundColor:'#fff',
        flex:1,
        flexDirection:'column',
        justifyContent:'space-between',
    },
    textInput:{
        fontSize:15,
        color:'#5F6484',
        marginTop:15,
        paddingLeft:15,
        paddingRight:15,
        textAlignVertical:'center',
    }
});

